﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddAPI.aspx.cs" Inherits="site_mag_AddAPI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../img/mycss.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
</head>
<body bgcolor="#DEDDDD" text="#333333" link="#333333" vlink="#333333" alink="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form id="form1" runat="server">
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#3A76AF">
            <tr>
                <td height="28"><span class="style12"><font color="#FFFFFF">&nbsp;→ 欢迎您进入网站</font></span><font color="#FFFFFF"><span class="style12">后台管理系统</span></font></td>
                <td align="left"><strong><span class="C02"><font color="#FFFFFF"></font></span></strong></td>
            </tr>
        </table>
        <br>
        <hr align="center" width="98%" size="1" noshade>
        <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#3A76AF">
            <tr>
                <td height="23" colspan="2">
                    <div align="center" class="style3"><font color="#FFFFFF"><strong>定时API明细</strong></font></div>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">
                    <div align="right">API名称：</div>
                </td>
                <td width="90%" height="25">
                    <asp:TextBox ID="txtapiname" runat="server" Height="26px" Width="880px"></asp:TextBox>
                </td>
            </tr>


            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">
                    <div align="right">API地址：</div>
                </td>
                <td width="90%" height="25">
                    <asp:TextBox ID="txtapiurl" runat="server" Height="26px" Width="880px"></asp:TextBox>
                    &nbsp; </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">
                    <div align="right">计划：</div>
                </td>
                <td width="90%" height="25">

                     <asp:DropDownList ID="ddlTimeSpans" runat="server" Height="26px" Width="200px">
                         <asp:ListItem Value="" Text="常用表达式"></asp:ListItem>
                        <asp:ListItem Value="0 */1 * * * ? *" Text="一分钟"></asp:ListItem>
                        <asp:ListItem Value="0 */5 * * * ? *" Text="五分钟"></asp:ListItem>
                        <asp:ListItem Value="0 */10 * * * ? *" Text="十分钟"></asp:ListItem>
                        <asp:ListItem Value="0 */15 * * * ? *" Text="十五分钟"></asp:ListItem>
                        <asp:ListItem Value="0 */30 * * * ? *" Text="三十分钟"></asp:ListItem>
                        <asp:ListItem Value="0 0 */1 * * ? *" Text="一小时"></asp:ListItem>
                    </asp:DropDownList>
                    
                    <asp:Button ID="btnSelect" Text="=>" runat="server" OnClick="btnSelect_Click"/>

                    <asp:TextBox ID="txtapimemo" runat="server" Height="26px" Width="636px"></asp:TextBox>

                    <asp:Button ID="Button1" Text="=>" runat="server" Width="35px"/>

                    <asp:Label ID="lblMemo" runat="server" Width="165px" Height="26px" Text="未解析"></asp:Label>
                    
                    
                    </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">
                    <div align="right">状态：</div>
                </td>
                <td width="90%" height="25">
                    <asp:DropDownList ID="ddlstatus" runat="server" Height="26px">
                        <asp:ListItem>正常</asp:ListItem>
                        <asp:ListItem>异常</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
             <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">
                    <div align="right">Http方法：</div>
                </td>
                <td width="90%" height="25">
                    <asp:DropDownList ID="ddlhttpmethod" runat="server" Height="26px">
                        <asp:ListItem>GET</asp:ListItem>
                        <asp:ListItem>POST</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">
                    <div align="right">内容类型：</div>
                </td>
                <td width="90%" height="25">
                    <asp:DropDownList ID="ddlcontenttype" runat="server" Height="26px">
                        <asp:ListItem>application/x-www-form-urlencoded</asp:ListItem>
                        <asp:ListItem>application/json</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">
                    <div align="right">内容：</div>
                </td>
                <td width="90%" height="25">
                    <asp:TextBox ID="txtcontent" runat="server" Height="80px" Width="880px" TextMode="MultiLine"></asp:TextBox>
                    &nbsp; </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">
                    <div align="right">是否启用：</div>
                </td>
                <td width="90%" height="25">&nbsp; 
                    <asp:CheckBox ID="cbisusing" runat="server" Text="" />
                </td>
            </tr>

            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1">&nbsp;</td>
                <td height="25">
                    <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="· 提交 ·"
                        Width="100px" />

                    &nbsp;&nbsp;
                     <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text="· 返回 ·"
                        Width="75px" />
                </td>
            </tr>
        </table>
    </form>
</body>

</html>
